package com.lingjtx.order.service;

import com.lingjtx.order.po.GoodsSettlementPo;
import com.lingjtx.order.po.SubmitOrderPo;
import com.lingjtx.order.vo.GoodsSettlementVo;
import com.lingjtx.order.vo.OrderDetailVo;
import com.lingjtx.order.vo.OrderListVo;
import com.lingjtx.order.vo.SettlementVo;

import java.util.List;

public interface OrderService {

    // 购物车去结算
    SettlementVo cartSettlement();

    // 单个商品直接结算
    GoodsSettlementVo goodsSettlement(GoodsSettlementPo model);

    // 提交订单
    Object submit(SubmitOrderPo model);

    // 订单列表
    List<OrderListVo> list(Integer orderStatus, int page, int pageSize);

    // 删除订单
    boolean delete(String orderNo);

    // 去支付（待支付订单）
    Object toPay(String orderNo);

    // 订单详情
    OrderDetailVo detail(String orderNo);

    // 修改订单地址
    boolean updateOrderAddress(String orderNo, Long addressId);

    // 确认收货
    boolean confirmReceipt(String orderNo);

    // 订单数量
    Integer getOrderNum();
}
